<template>
	<view class="content">
		<view class="title">{{datas.problemTitele}}</view>
		<view class="group">
			<rich-text :nodes="datas.problemContent"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:'',
				content:'',
				datas:{}
			}
		},
		onLoad(options) {
			console.log(options)
			this.id = options.id;
			this.getInfo()
		},
		methods: {
			getInfo: function () {
				this.api.getProblemDetail(this.id).then(res => {
					console.log(res)
					this.datas = res.data;
				})
			}
		}
	}
</script>

<style lang="less">
	page {
		width: 100%;
		box-sizing: border-box;
		background: #FFFFFF;
		letter-spacing: 3rpx;
		padding: 20rpx 30rpx;
		font-family: 'PingFang SC';
		font-size: 28rpx;
		color: #666666;
	}
	.content {
		width: 100%;
		box-sizing: border-box;
	}
	.title {
		width: 100%;
		box-sizing: border-box;
		font-size: 28rpx;
		color: #212121;
		line-height: 60rpx;
		padding-bottom: 20rpx;
		text-align: center;
	}
	.group {
		width: 100%;
		box-sizing: border-box;
		line-height: 40rpx;
	}
	

</style>
